package sg.edu.nus.iss.jass.gui;


public class MenuFunction   {
	
	private String functionKey;
	
	public MenuFunction(String functionKey) {
		this.functionKey = functionKey;
	}
	
	public String getFunctionKey() {
		return functionKey;
	}

	public void setFunctionKey(String functionKey) {
		this.functionKey = functionKey;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		
		MenuFunction other = (MenuFunction) obj;
		if (functionKey == null) {
			if (other.functionKey != null)
				return false;
		} else if (!functionKey.equals(other.functionKey))
			return false;
		return true;
	}
	
	public String toString() {
		return this.functionKey;
	}
	
}
